Skip to content

feat(cloud): add Autumn billing integration - #152

Merged
RhysSullivan merged 6 commits into
mainfrom
feat/billing-autumn
Apr 10, 2026
Merged

feat(cloud): add Autumn billing integration#152
RhysSullivan merged 6 commits into
mainfrom
feat/billing-autumn

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

Summary

  • Integrate Autumn as billing/entitlements layer over Stripe with three tiers:
    • Free: 5,000 executions/month, 1 seat, 60s timeout
    • Hobby: $10/seat/month, 50,000 executions/month, up to 5 seats
    • Professional: $40/seat/month, 100,000 executions/month, unlimited seats, 5 min timeout
    • Execution Top-Up: $1 per 10,000 extra executions (prepaid add-on)
  • Backend handler at /api/autumn/* proxies authenticated requests to Autumn using org ID as customer ID
  • Fire-and-forget execution tracking via Autumn SDK on POST /executions and resume endpoints
  • Effect-wrapped AutumnService for server-side check/track (ready for feature gating)
  • Billing page (/billing) showing current plan + execution usage bar
  • Plan picker page (/billing/plans) using useListPlans with customerEligibility for upgrade/downgrade/resume states
  • AutumnProvider wrapping authenticated app shell

Test plan

  • Set AUTUMN_SECRET_KEY env var
  • Visit /billing — should show Free plan with 5,000 execution limit
  • Click Manage → /billing/plans shows Hobby and Professional cards
  • Subscribe to a paid plan via Stripe checkout
  • Verify plan status updates on billing page
  • Cancel plan and verify canceling state shows correctly
  • Run an execution and verify tracking fires (check Autumn dashboard)

Integrate Autumn as the billing/entitlements layer over Stripe.
Three tiers: Free (5k executions/mo), Hobby ($10/seat, 50k), and
Professional ($40/seat, 100k) with $1/10k overage top-ups.
Fire-and-forget execution tracking via the Autumn SDK.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 10, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
executor-marketing 9bd88c0 Apr 10 2026, 08:23 AM

@RhysSullivan
RhysSullivan merged commit a609217 into main Apr 10, 2026
0 of 2 checks passed
RhysSullivan added a commit that referenced this pull request May 31, 2026
* feat(cloud): add Autumn billing integration with tiered pricing

Integrate Autumn as the billing/entitlements layer over Stripe.
Three tiers: Free (5k executions/mo), Hobby ($10/seat, 50k), and
Professional ($40/seat, 100k) with $1/10k overage top-ups.
Fire-and-forget execution tracking via the Autumn SDK.

* style: format

* refactor(billing): use useListPlans customerEligibility instead of manual sub parsing

* style: format

* fix(billing): sanitize Autumn error responses, remove any types

* style: format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant